package com.jmp.base;

import com.jmp.base.dto.*;
import one.stand.model.ResultModel;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

public interface ShopCartApi {
    @PostMapping("/shop/cart/list")
    ResultModel<ShopCartListVo> list(@RequestBody ShopCartListDto request);

    @PostMapping("/shop/cart/add")
    ResultModel add(@RequestBody ShopCartAddDto request);

    @PostMapping("/shop/cart/remove")
    ResultModel remove(@RequestBody ShopCartRemoveDto request);

    @PostMapping("/shop/cart/edit")
    ResultModel edit(@RequestBody ShopCartEditDto request);

    @PostMapping("/shop/cart/count")
    ResultModel<ShopCartCountVo> count(@RequestBody ShopCartCountDto request);

}
